import request from '@/config/axios'

// 项目-审查（项目方） VO
export interface ProjectReviewVO {
  id: number // ID，主键
  projectId: number // 项目ID
  result: number // 审查结果
  content: string // 审查意见，留言
}

// 项目-审查（项目方） API
export const ProjectReviewApi = {
  // 查询项目-审查（项目方）分页
  getProjectReviewPage: async (params: any) => {
    return await request.get({ url: `/xinyu/project-review/page`, params })
  },

  // 查询项目-审查（项目方）详情
  getProjectReview: async (id: number) => {
    return await request.get({ url: `/xinyu/project-review/get?id=` + id })
  },

  // 新增项目-审查（项目方）
  createProjectReview: async (data: ProjectReviewVO) => {
    return await request.post({ url: `/xinyu/project-review/create`, data })
  },

  // 修改项目-审查（项目方）
  updateProjectReview: async (data: ProjectReviewVO) => {
    return await request.put({ url: `/xinyu/project-review/update`, data })
  },

  // 删除项目-审查（项目方）
  deleteProjectReview: async (id: number) => {
    return await request.delete({ url: `/xinyu/project-review/delete?id=` + id })
  },

  // 导出项目-审查（项目方） Excel
  exportProjectReview: async (params) => {
    return await request.download({ url: `/xinyu/project-review/export-excel`, params })
  },
}